/**
 * Created by will on 2017/9/22.
 */
$(function () {
    //引入公共部分
    $("#public-style").load("./easytrip-header.html")
//    tab栏js
        $(".titTab li").click(function(){
            $(".titTab li").eq($(this).index()).addClass("order-active").siblings().removeClass("order-active");
            $(".titInfo .titInformation").hide().eq($(this).index()).show();
        });
    //分页js
    layui.use(['laypage', 'layer'], function() {
        var laypage = layui.laypage
            , layer = layui.layer;
       /* laypage.render({
            elem: 'titpaging'
            , count: 100
            , first: '首页'
            , last: '尾页'
            , prev: '<em>←</em>'
            , next: '<em>→</em>'
        });*/
        laypage.render({
            elem: 'titpaging1'
            ,count: 9999
            , first: '首页'
            ,theme: '#45A2FF'
            , last: '尾页'
            ,layout: ['prev', 'page', 'next','count', 'limit', 'skip']
            ,jump: function(obj){
                console.log(obj)
            }
        });
        laypage.render({
            elem: 'titpaging2'
            ,count: 9999
            , first: '首页'
            ,theme: '#45A2FF'
            , last: '尾页'
            ,layout: ['prev', 'page', 'next','count', 'limit', 'skip']
            ,jump: function(obj){
                console.log(obj)
            }
        });
        laypage.render({
            elem: 'titpaging3'
            ,count: 9999
            , first: '首页'
            ,theme: '#45A2FF'
            , last: '尾页'
            ,layout: ['prev', 'page', 'next','count', 'limit', 'skip']
            ,jump: function(obj){
                console.log(obj)
            }
        });
        laypage.render({
            elem: 'titpaging4'
            ,count: 9999
            , first: '首页'
            ,theme: '#45A2FF'
            , last: '尾页'
            ,layout: ['prev', 'page', 'next','count', 'limit', 'skip']
            ,jump: function(obj){
                console.log(obj)
            }
        });
    });
//    输入框js

})